package com.buobao.spring01.ioc;

import com.buobao.spring01.entity.Apple;
import com.buobao.spring01.entity.Child;

public class Application {
    public static void main(String[] args) {
//        Apple apple1 = new Apple("红富士","红色","欧洲");
//        Apple apple2 = new Apple("青苹果","绿色","中亚");
//        Apple apple3 = new Apple("金帅","黄色","中国");
//
//        Child child1 = new Child("莉莉",apple1);
//        Child child2 = new Child("安迪",apple2);
//        Child child3 = new Child("马克",apple3);
//
//        child1.eat();
//        child2.eat();
//        child3.eat();
    }
}
